package com.mxpio.webapp.service.impl;

import com.mxpio.webapp.entity.MonitorTcpHistory;
import com.mxpio.webapp.service.IMonitorTcpHistoryService;
import com.mxpioframework.jpa.JpaUtil;
import com.mxpioframework.jpa.initiator.JpaUtilAble;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: Cheng
 * @date: 2022/10/28
 */
@Service
public class MonitorTcpHistoryServiceImpl implements IMonitorTcpHistoryService, JpaUtilAble {
    @Override
    public void afterPropertiesSet(ApplicationContext applicationContext) {

    }

    @Override
    @Transactional(readOnly = false)
    public MonitorTcpHistory save(MonitorTcpHistory monitorTcpHistory) {
        JpaUtil.save(monitorTcpHistory);
        return monitorTcpHistory;
    }
}
